package org.jeecg.modules.dock.entity.mes.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * MES-WMS发送包装线退料请求
 *
 * @author zhoutong
 */
@ApiModel(value = "MES-WMS发送包装线退料请求", description = "MES-WMS发送包装线退料请求")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PackagingLineReturnRequestVO extends MesBaseRequestVO {

    @ApiModelProperty("生产订单号")
    private String orderCode;

    @NotNull
    @ApiModelProperty("明细")
    private List<Detail> detail;

    @Data
    public static class Detail implements Serializable {

        @NotBlank
        @NotNull
        @ApiModelProperty("批次号")
        private String batchId;

        @NotNull
        @ApiModelProperty("卷料宽度")
        private BigDecimal width;

        @NotNull
        @ApiModelProperty("外径")
        private Integer diameter;

        @NotNull
        @ApiModelProperty("重量（kg）")
        private Integer weight;

        @ApiModelProperty("卷料放置在一字臂的方向(L:左臂；R:右臂)")
        private String arm;

    }

}
